package com.hzit.bj1804.dian.entity;

import java.io.Serializable;

/**
 * PRODUCTINFO
 * @author 
 */
public class Productinfo implements Serializable {
    private Integer productid;

    private String productname;

    private String priductpic;

    private Object rp;

    private Object activityprice;

    private Short status;

    private String elite;

    private String productdetails;

    private static final long serialVersionUID = 1L;

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getPriductpic() {
        return priductpic;
    }

    public void setPriductpic(String priductpic) {
        this.priductpic = priductpic;
    }

    public Object getRp() {
        return rp;
    }

    public void setRp(Object rp) {
        this.rp = rp;
    }

    public Object getActivityprice() {
        return activityprice;
    }

    public void setActivityprice(Object activityprice) {
        this.activityprice = activityprice;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getElite() {
        return elite;
    }

    public void setElite(String elite) {
        this.elite = elite;
    }

    public String getProductdetails() {
        return productdetails;
    }

    public void setProductdetails(String productdetails) {
        this.productdetails = productdetails;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Productinfo other = (Productinfo) that;
        return (this.getProductid() == null ? other.getProductid() == null : this.getProductid().equals(other.getProductid()))
            && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
            && (this.getPriductpic() == null ? other.getPriductpic() == null : this.getPriductpic().equals(other.getPriductpic()))
            && (this.getRp() == null ? other.getRp() == null : this.getRp().equals(other.getRp()))
            && (this.getActivityprice() == null ? other.getActivityprice() == null : this.getActivityprice().equals(other.getActivityprice()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getElite() == null ? other.getElite() == null : this.getElite().equals(other.getElite()))
            && (this.getProductdetails() == null ? other.getProductdetails() == null : this.getProductdetails().equals(other.getProductdetails()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProductid() == null) ? 0 : getProductid().hashCode());
        result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
        result = prime * result + ((getPriductpic() == null) ? 0 : getPriductpic().hashCode());
        result = prime * result + ((getRp() == null) ? 0 : getRp().hashCode());
        result = prime * result + ((getActivityprice() == null) ? 0 : getActivityprice().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getElite() == null) ? 0 : getElite().hashCode());
        result = prime * result + ((getProductdetails() == null) ? 0 : getProductdetails().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productid=").append(productid);
        sb.append(", productname=").append(productname);
        sb.append(", priductpic=").append(priductpic);
        sb.append(", rp=").append(rp);
        sb.append(", activityprice=").append(activityprice);
        sb.append(", status=").append(status);
        sb.append(", elite=").append(elite);
        sb.append(", productdetails=").append(productdetails);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}